from celery import shared_task

from logging import getLogger
from apps.user.models import User

logger = getLogger()


@shared_task
def celery_task(demo: str):
    logger.info(f"[celery_task] test:{demo}")
    user_count = User.objects.all().count()
    return {'user_count': user_count}
